﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditContact.aspx.cs" Inherits="Admin_EditContact" %>

<%@ Register Src="adminfoot.ascx" TagName="adminfoot" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <link rel="stylesheet" href="imgs/admin.css" type="text/css" media="all" />
      <script type="text/javascript" src="../DotNet_net/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../DotNet_net/js/jquery.form.js"></script>
</head>
<body onload="$('#loading').hide()">
<form name="addform" id="addformAjax"  method="post">
<div id="cpcontainer" class="container">
<div id="loading" style="display:block">   
    <div class="loading-indicator">   
        页面正在加载中...   
    </div>   
</div> 
<ul id="makeHtmlTab">
<li class="hover"><a href="javascript:void(0)" >修改联系人</a></li>
</ul>
<table class="tb">
  <tbody id="adminC">
    
	<tr>
<td style="width: 238px"><img src="imgs/upload_topinforb.gif"></td>
<td>
<table width="100%" border="0">
    <tbody>
    <tr>
        <th width="25%" align="right" style="height: 32px">
            <span style="color:Red">*</span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</th>
        <td width="75%" style="height: 32px">
            <input type="text" class="inputField followedObj" maxlength="100" size="40" id="FullName" name="FullName" runat="server">
        </td>
    </tr>
    <tr>
        <th valign="top" align="right">
        &nbsp;
            职&nbsp;&nbsp;&nbsp;&nbsp;位：</th>
        <td>
            <input type="text" class="inputField followedObj" maxlength="20" size="20" id="Duty" name="Duty" runat="server">
        </td>
    </tr>
    <tr>
        <th align="right">
        <span style="color: #ff0000">*</span>性&nbsp;&nbsp;&nbsp;&nbsp;别：</th>
        <td>
            男<input type="radio" id="Sex_1" name="sex" value="1" runat="server" checked="true">
            女<input type="radio" id="Sex_2" name="sex" value="0" runat="server">
        </td>
    </tr>
    <tr>
        <th align="right">
            &nbsp; 联系QQ/msn：</th>
        <td>
            <input type="text" class="inputField followedObj" maxlength="500" size="40" id="qq" name="qq" runat="server">
        </td>
    </tr>
    <tr>
        <th valign="top" align="right">
            <span style="color: #ff0000">*</span>邮件地址：</th>
        <td>
            <input type="text" class="inputField followedObj" maxlength="500" size="40" id="Email" name="Email" runat="server"><br>
            - 请准确填写电子邮件信息<br>
            - 以便顾客较快的联系到您。
        </td>
    </tr>
    <tr>
        <th valign="top" align="right">                                                &nbsp;
            手机号码:</th>
        <td>
            <input type="text" class="inputField followedObj" maxlength="50" size="40" id="Mobile" name="Mobile" runat="server">
        </td>
    </tr>
    <tr>
        <th valign="top" align="right"></th>
        <td>
            <input type="button" value="提交个人信息..." class="btn" name="Submit" id="tijiao">
             <input type="button" class="btn" value="返回" onclick="javascript:location.href='AdminContact.aspx'">
        </td>
    </tr>
                                        </tbody></table>
 
        <input id="Hiddenid" runat="server" type="hidden" name="Hiddenid"/></td>                                 
  </tr>
                        

</tbody>
    
</table>
</div>
    <uc1:adminfoot ID="Adminfoot1" runat="server" />
</form>
<script type="text/javascript">
$(document).ready(function(){
    var options = { 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse,  // post-submit callback 
        // other available options: 
         url:       "EditContact.aspx?state=add",         // override for form's 'action' attribute 
       // type:        'post'        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        clearForm: false,        // clear all form fields after successful submit 
        resetForm: false        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
    $('#tijiao').click(function(){
            $("#loading").show();
            $('#addformAjax').ajaxSubmit(options);
            return false;
    });
})
function showResponse(msg){ 
    if(msg=="1")
    {
        //$("#loading").hide();
        alert("成功!!!");
        $("#loading").hide();
        location.href="AdminContact.aspx";
    }
    else
    {
        alert(msg);
        $("#loading").hide();
    }
} 
function showRequest(formData, jqForm, options) { 
           
				//$("#loading").show();
    return true; 
} 

</script>
</body>

</html>
